home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / agent_pl.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2010-11-09  |  455 b   |  19 lines

  1. stop();
  2. once = false;
  3. onEnterFrame = function()
  4. {
  5.    myLoaded = Math.round(getBytesLoaded());
  6.    myTotal = Math.round(getBytesTotal());
  7.    myPercent = myLoaded / myTotal;
  8.    myText = Math.round(myPercent * 100) + "%";
  9.    bar.gotoAndStop(Math.round(myPercent * 100));
  10.    if(myLoaded == myTotal and once == false)
  11.    {
  12.       once = true;
  13.       nextFrame();
  14.    }
  15. };
  16. var hide = new ContextMenu();
  17. hide.hideBuiltInItems();
  18. _root.menu = hide;
  19.